removeText

abstract fun removeText(block: DesignBlock, from: Int = -1, to: Int = -1)

Removes selected range of text of the given text block. Required scope: "text/edit"

Parameters

block

the text block from which the selected text should be removed.

from

the start index of the range that should be removed. If the value is negative, this will fall back to the start of the entire text range.

to

the index after the last character that should be removed. If the value is negative, this will fall back to the end of the entire text range.